MPIMapClickEvent

@Serializable
data class MPIMapClickEvent(    val floatingLabels: List<FloatingLabelClickEvent> = emptyList(),     val markers: List<MarkerClickEvent> = emptyList(),     val tooltips: List<TooltipClickEvent> = emptyList(),     val maps: List<MPIMap> = emptyList(),     val nearBlueDot: Boolean = false,     val paths: List<MPINavigatable.MPIPath> = emptyList(),     val polygons: List<MPINavigatable.MPIPolygon> = emptyList(),     val position: MPIMap.MPICoordinate? = null)

MPIMapClickEvent is passed from MPIMapClickListner and provides information about the click event.

Constructors

Link copied to clipboard
constructor(    floatingLabels: List<FloatingLabelClickEvent> = emptyList(),     markers: List<MarkerClickEvent> = emptyList(),     tooltips: List<TooltipClickEvent> = emptyList(),     maps: List<MPIMap> = emptyList(),     nearBlueDot: Boolean = false,     paths: List<MPINavigatable.MPIPath> = emptyList(),     polygons: List<MPINavigatable.MPIPolygon> = emptyList(),     position: MPIMap.MPICoordinate? = null)

Properties

Link copied to clipboard

A List of FloatingLabelClickEvents. If no floating label was clicked, this will be empty.

Link copied to clipboard

A list of MPIMaps corresponding to every map that a user's click passed through. These are in order of first to last intersected. Will be empty if no maps were clicked.

Link copied to clipboard

A List of MarkerClickEvents. If no marker was clicked, this will be empty.

Link copied to clipboard
val nearBlueDot: Boolean = false

Indicates whether the user clicked close to the Blue Dot object on the map, if present. If Blue Dot is disabled, this will always be false.

Link copied to clipboard

A list of paths that a user's click passed through. These are in order of first to last intersected and will be empty if no paths were clicked.

Link copied to clipboard

A list of MPINavigatable.MPIPolygons corresponding to every polygon that a user's click passed through. These are in order of first to last intersected and will be empty if no polygons were clicked.

Link copied to clipboard

The position on the map where the user clicked. Will be null if unable to compute the position.

Link copied to clipboard

A List of TooltipClickEvents. If no tooltip was clicked, this will be empty.